﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ObjectInfo
{
    private GameObject _gameObj;
    private float _liveTime;
    private bool _liveState;

    public void SetGameObj(GameObject gameObj)
    {
        _gameObj = gameObj;
    }

    public GameObject GetGameObject()
    {
        return _gameObj;
    }

    public void ResetLveTime()
    {
        _liveTime = 10;
    }

    public void SetLiveState(bool liveState)
    {
        _liveState = liveState;
    }

    public bool GetLiveState()
    {
        return _liveState;
    }

    public void Reset()
    {
        _gameObj = null;
        _liveState = true;
        _liveTime = 10;
    }

    public void SetHide()
    {
        if(_gameObj != null)
        {
            _gameObj.SetActive(false);
            //_gameObj.transform.SetParent();
        }
    }
   

}
